<a href="javascript:(function(){
  var t;
  
    t= ((window.getSelection && window.getSelection()) ||
(document.getSelection && document.getSelection()) ||
(document.selection &&
document.selection.createRange &&
document.selection.createRange().text));
  
  location.href='http://localhost/Projects/purgatory/inspiwrite/index.php?t='+encodeURIComponent(t)+'\&u='+encodeURIComponent(window.location.href)+'\&ttl='+encodeURIComponent(document.title)
  })()">Bookmarketlet</a>
